package com.t.bricks.bussiness.db.dao.ordersreturned;

import com.t.bricks.bussiness.db.dao.common.BaseDao;
import com.t.bricks.model.MsgEmity;

public interface OrdersReturnedDao<T> extends BaseDao<T> {
	
	/**
	 * 添加
	 * @Param sId
	 * @Param sOrderId
	 * @Param sCreator
	 * @Param sMemo
	 * @return MsgEmity
	 */
	MsgEmity addCustom(String sId, String sOrderId, String sCreator, String sMemo);

	/**
	 * 修改状态
	 * @param sId 编号
	 * @param iState 状态值
	 * @param iVersion 记录版本号
	 * @param sCreator 创建人
	 * @param sOrderId 订单编号
	 * @param iOrderState 待影响的订单状态,若为-1则不处理
	 * @return MsgEmity 返回执行情况
	 */
	MsgEmity changeState(String sId, int iState, int iVersion, String sCreator,
			String sOrderId, int iOrderState);

}
